<!DOCTYPE html>
<html>

	<head>
		<base href="../" />
		<title>客户关系管理系统-权限管理</title>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/normalize.min.css" />

		<link rel="stylesheet" type="text/css" href="../css/custom/scrollbar-style.min.css" />

		<script src="../js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>

		<!--[if lte IE 8]>
			<script src="../js/html5shiv.min.js" type="text/javascript" charset="utf-8"></script>
			<script src="../js/respond.min.js" type="text/javascript" charset="utf-8"></script>
		<![endif]-->

		<!-- 界面自定义CSS文件 -->
		<link rel="stylesheet" type="text/css" href="../css/custom/scrollbar-style.min.css" />

		<!--界面自定义JS文件-->
		<script src="../js/custom/tip-popover.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/custom/html-power-index.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div class="container-fluid">

			<!--当前页面地理位置 (面包屑导航)-->
			<ul class="breadcrumb">
				<li>权限&amp;角色管理</li>
				<li>权限管理</li>
			</ul>

			<!--搜索表单及工具按钮-->
			<form id="form-search" method="get" class="form-inline">

				<div class="form-group">
					<label class="control-label">权限文本：</label>
					<input class="form-control" type="text" />

					<label class="control-label">类别：</label>
					<select class="form-control">
						<option>全部</option>
						<option>未设置</option>
						<option>营销管理</option>
						<option>客户管理</option>
						<option>服务管理</option>
						<option>统计分析管理</option>
						<option>基础数据管理</option>
						<option>权限&amp;角色管理</option>
						<option>用户管理</option>
					</select>

					<label class="control-label">描述：</label>
					<input class="form-control" type="text" />
				</div>

				<div class="form-group">
					<label class="control-label">标志：</label>
					<select class="form-control">
						<option value="-1">不限</option>
						<option value="1" class="text-danger">禁用</option>
						<option value="0" class="text-primary">启用</option>
					</select>
				</div>

				<div class="form-group btn-group">

					<button class="btn btn-default">
						<span class="glyphicon glyphicon-search"></span>
						查询
					</button>

					<button class="btn btn-default" type="button" data-toggle="modal" data-target="#modal-add">
						<span class="glyphicon glyphicon-plus"></span>
						新建
					</button>
				</div>

				<div class="form-group btn-group">
					<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#modal-type-manage">
						<span class="glyphicon glyphicon-list"></span>
						管理权限类别
					</button>
				</div>

			</form>

			<hr />

			<!--数据表格部分-->
			<table class="table table-hover table-bordered power-table">
				<thead class="bg-primary">
					<tr>
						<th class="hidden-xs">#</th>
						<th>权限文本</th>
						<th>类别</th>
						<th>URL</th>
						<th class="hidden-xs">描述</th>
						<th>标志</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="hidden-xs">101</td>
						<td>销售机会管理</td>
						<td>营销</td>
						<td>
							<a href="sale!getSales">sale!getSales</a>
						</td>
						<td class="hidden-xs">销售机会管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="101">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr class="text-muted" style="text-decoration: underline line-through;">
						<td class="hidden-xs" title="被禁用的权限">102</td>
						<td title="被禁用的权限">客户开发计划</td>
						<td>营销</td>
						<td>
							<a href="sale!getSales" class="text-muted">
								sale!getDev
							</a>
						</td>
						<td class="hidden-xs">客户开发计划权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-remove text-danger" title="禁用"></span>
								<span class="hidden-xs">禁用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="102">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-primary" title="启用">
									<span class="glyphicon glyphicon-ok-circle"></span>
									<span class="hidden-xs">启用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>

							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">201</td>
						<td>客户信息管理</td>
						<td>客户</td>
						<td>
							<a href="sale!getSales">cust!getCusts</a>
						</td>
						<td class="hidden-xs">客户信息管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="201">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">202</td>
						<td>客户流失管理</td>
						<td>客户</td>
						<td>
							<a href="sale!getSales">cust!getLostCusts</a>
						</td>
						<td class="hidden-xs">客户流失管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="202">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">501</td>
						<td>权限管理</td>
						<td>权限&amp;角色</td>
						<td>
							<a href="sale!getSales">right!getRights</a>
						</td>
						<td class="hidden-xs">权限管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="501">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>

								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">502</td>
						<td>角色管理</td>
						<td>权限&amp;角色</td>
						<td>
							<a href="sale!getSales">right!getRoles</a>
						</td>
						<td class="hidden-xs">角色管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="502">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">503</td>
						<td>权限分配</td>
						<td>权限&amp;角色</td>
						<td>
							<a href="sale!getSales">right!getRightAssign</a>
						</td>
						<td class="hidden-xs">权限分配权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="503">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">504</td>
						<td>用户信息管理</td>
						<td>用户</td>
						<td>
							<a href="sale!getSales">right!getUsers</a>
						</td>
						<td class="hidden-xs">用户信息管理权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="504">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
					<tr>
						<td class="hidden-xs">505</td>
						<td>用户角色分配</td>
						<td>用户</td>
						<td>
							<a href="sale!getSales">right!getRoleAssing</a>
						</td>
						<td class="hidden-xs">用户角色分配权限描述信息</td>
						<td>
							<div>
								<span class="glyphicon glyphicon-ok text-success" title="启用"></span>
								<span class="hidden-xs">启用</span>
							</div>
						</td>
						<td>
							<div class="btn-group btn-group-xs" data-id="505">
								<button class="btn btn-default" data-toggle="modal" data-target="#modal-edit" title="编辑">
									<span class="glyphicon glyphicon-edit"></span>
									<span class="hidden-xs">编辑</span>
								</button>
								<button class="btn btn-warning" title="禁用">
									<span class="glyphicon glyphicon-ban-circle"></span>
									<span class="hidden-xs">禁用</span>
								</button>
								<button class="btn btn-danger" title="删除">
									<span class="glyphicon glyphicon-remove"></span>
									<span class="hidden-xs">删除</span>
								</button>
							</div>
						</td>
					</tr>
				</tbody>
			</table>

			<!-- TODO 分页部分 -->
			<div class="text-center">
				<ul class="pagination">
					<li class="disabled">
						<a>&lt;</a>
					</li>
					<li class="active">
						<a>1</a>
					</li>
					<li>
						<a href="">2</a>
					</li>
					<li>
						<a href="">3</a>
					</li>
					<li>
						<a href="">4</a>
					</li>
					<li>
						<a href="">5</a>
					</li>
					<li>
						<a href="">&gt;</a>
					</li>
				</ul>
			</div>

		</div>

		<!-- TODO 添加权限对话框部分-->
		<div class="modal fade" id="modal-add">
			<div class="modal-dialog">
				<div class="modal-content">

					<div class="modal-header">
						<span class="h3">
							<span class="glyphicon glyphicon-plus"></span> 新增权限
						</span>
					</div>

					<div class="modal-body">
						<form id="form-add" action="" class="form-horizontal">

							<div class="form-group">
								<label class="col-xs-3 control-label">文本：</label>
								<div class="col-xs-9">
									<input class="form-control" required="required" autofocus="autofocus" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">类别：</label>
								<div class="col-xs-9">
									<select class="form-control">
										<option>未设置</option>
										<option>营销管理</option>
										<option>客户管理</option>
										<option>服务管理</option>
										<option>统计分析管理</option>
										<option>基础数据管理</option>
										<option>权限&amp;角色管理</option>
										<option>用户管理</option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">URL：</label>
								<div class="col-xs-9">
									<input class="form-control" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">描述：</label>
								<div class="col-xs-9">
									<textarea class="form-control"></textarea>
								</div>
							</div>

						</form>
					</div>

					<div class="modal-footer">
						<button class="btn btn-default" data-dismiss="modal">
							<span class="glyphicon glyphicon-remove"></span>
							关闭
						</button>
						<button class="btn btn-primary" form="form-add">
							<span class="glyphicon glyphicon-save"></span>
							新增
						</button>
					</div>

				</div>
			</div>
		</div>

		<!-- TODO 修改权限对话框部分-->
		<div class="modal fade" id="modal-edit">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<span class="h3">
							<span class="glyphicon glyphicon-edit"></span> 更新权限信息
						</span>
					</div>

					<div class="modal-body">
						<form id="form-edit" action="" class="form-horizontal">
							<div class="form-group">
								<label class="col-xs-3 control-label">编号：</label>
								<div class="col-xs-9 form-control-static">201</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">文本：</label>
								<div class="col-xs-9">
									<input class="form-control" required="required" value="客户信息管理" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">类别：</label>
								<div class="col-xs-9">
									<select class="form-control">
										<option>未设置</option>
										<option selected="selected">营销管理</option>
										<option>客户管理</option>
										<option>服务管理</option>
										<option>统计分析管理</option>
										<option>基础数据管理</option>
										<option>权限&amp;角色管理</option>
										<option>用户管理</option>
									</select>
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">URL：</label>
								<div class="col-xs-9">
									<input class="form-control" value="cust!getCusts" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">描述：</label>
								<div class="col-xs-9">
									<textarea class="form-control">客户管理>客户信息管理权限描述信息</textarea>
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-3 control-label">标志：</label>
								<div class="col-xs-9 form-control-static">
									<span class="glyphicon glyphicon-ok text-success"></span>
								</div>
							</div>

						</form>
					</div>

					<div class="modal-footer">
						<button class="btn btn-default" data-dismiss="modal">
							<span class="glyphicon glyphicon-remove"></span>
							关闭
						</button>
						<button class="btn btn-primary" form="form-edit">
							<span class="glyphicon glyphicon-edit"></span>
							更新
						</button>
					</div>
				</div>
			</div>
		</div>

		<!-- TODO 权限类别管理modal部分 -->
		<div class="modal fade" id="modal-type-manage">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<div class="modal-title h3">
							<span class="glyphicon glyphicon-list"></span> 权限类别管理
							<a href="#form-type-add" class="btn btn-xs btn-primary" data-toggle="collapse">
								<span class="glyphicon glyphicon-plus"></span>
								<span class="hidden-xs">新增</span>
							</a>
						</div>
					</div>
					<div class="modal-body">
						<form action="" class="form-horizontal collapse" id="form-type-add">
							<div class="form-group form-group-sm">
								<label class="col-xs-3 col-sm-2 control-label">权限类别</label>
								<div class="col-xs-6 col-sm-8">
									<input class="form-control" required="required" />
								</div>
								<div class="col-xs-3 col-sm-2 input-group input-group-sm">
									<button class="btn btn-sm btn-primary">
										<span class="glyphicon glyphicon-plus"></span>
										新增
									</button>
								</div>
							</div>
						</form>
						<table class="table table-condensed type-table">
							<thead>
								<tr class="bg-info">
									<th width="50">#</th>
									<th>类别</th>
									<th width="140">操作</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>1</td>
									<td>
										<div class="form-group form-group-xs">
											<span class="form-control-static">营销管理</span>
											<input class="form-control input-sm" value="营销管理" />
										</div>
									</td>
									<td>
										<div class="btn-group btn-group-xs">
											<button class="btn btn-default">
												<span class="glyphicon glyphicon-edit"></span>
												<span class="hidden-xs">修改</span>
											</button>
											<button class="btn btn-default">
												<div class="text-danger">
													<span class="glyphicon glyphicon-remove"></span>
													<span class="hidden-xs">删除</span>
												</div>
											</button>
										</div>

										<div class="btn-group btn-group-sm">
											<button class="btn btn-primary">
												<span class="glyphicon glyphicon-edit"></span>
												<span class="hidden-xs">更新</span>
											</button>
											<button class="btn btn-default">
												<span class="glyphicon glyphicon-repeat"></span>
												<span class="hidden-xs">取消</span>
											</button>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="modal-footer">
						<button class="btn btn-default" data-dismiss="modal">
							<span class="glyphicon glyphicon-remove"></span>
							关闭
						</button>
					</div>
				</div>
			</div>
		</div>
	</body>

</html>